package ${modelPackageName};

import android.app.Application;
import com.jpxx.base.ui.mvp.BaseModel;
import com.jpxx.base.ui.mvp.integration.IRepositoryManager;

<#if needActivity && needFragment>
import com.jpxx.base.ui.mvp.di.scope.ActivityScope;
<#elseif needActivity>
import com.jpxx.base.ui.mvp.di.scope.ActivityScope;
<#elseif needFragment>
import com.jpxx.base.ui.mvp.di.scope.FragmentScope;
</#if>
import javax.inject.Inject;

import ${contractPackageName}.${pageName}Contract;


<#if needActivity && needFragment>
@ActivityScope
<#elseif needActivity>
@ActivityScope
<#elseif needFragment>
@FragmentScope
</#if>
public class ${pageName}Model extends BaseModel implements ${pageName}Contract.Model{
    @Inject
    Application mApplication;

    @Inject
    public ${pageName}Model(IRepositoryManager repositoryManager) {
        super(repositoryManager);
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        this.mApplication = null;
    }
}